﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.orders {
    import Classes.orders.Valentines2011.*;

    public class OrderType {

        public static const TRAIN:String = "order_train";
        public static const LOT:String = "order_lot";
        public static const VISITOR_HELP:String = "order_visitor_help";
        public static const VALENTINE_2011:String = "order_valentine";

        public static function order(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Object):AbstractOrder{
            var _local6:AbstractOrder;
            switch (_arg3){
                case TRAIN:
                    _local6 = new TrainOrder(_arg1, _arg2);
                    break;
                case LOT:
                    _local6 = new LotOrder(_arg1, _arg2);
                    break;
                case VISITOR_HELP:
                    _local6 = new VisitorHelpOrder(_arg1, _arg2);
                    break;
                case VALENTINE_2011:
                    _local6 = new ValentineOrder(_arg1, _arg2);
                    break;
                default:
                    _local6 = null;
            };
            if (_local6){
                _local6.setParams(_arg5);
            };
            return (_local6);
        }

    }
}//package Classes.orders 
